package ga.wavaplayer.ui.buttons {
	
	import flash.display.MovieClip;
	
	public class WButton extends MovieClip{
		
		protected var _visual:MovieClip = new MovieClip();
		
		protected var _config:Object;
		
		public function WButton(pConfig:Object = 5) {
			this.buttonMode = true;
			
			_config = pConfig;
			
			this._setVisual();
			this._drawBG();
			
			_visual.x = 0;
			_visual.y = (_config.height - _visual.height) * 0.5;
			this.addChild(_visual);
		}
		
		private function _drawBG():void {
			this.graphics.beginFill(0xff0000, 0);
			this.graphics.drawRect(0, 0, _visual.width, _config.height);
			this.graphics.endFill();
		}
		
		protected function _setVisual():void {}
	}
}
